package zsc.ruanc.practicaltraining.model.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户权限表
 */
@Data
public class TAuthority {

  @NotNull(message = "id不能为空")
  @Min(message = "id不能为小于0", value = 0)
  @ApiModelProperty(value = "权限id，自增主键", required = true, dataType = "int")
  private Integer id;

  @NotBlank(message = "authority不能为空")
  @ApiModelProperty(value = "权限名", required = true, dataType = "string")
  private String authority;

  private String name;




}
